﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Materpage.master" AutoEventWireup="true" CodeFile="GioHang.aspx.cs" Inherits="GioHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="css/Site.css" rel="stylesheet" />
    <link href="css/detailproduct.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <br />
    <br />


    <div class="giohang">
        <asp:Label ID="lblMessage" runat="server" Text="Label" Visible="False" Font-Size="Large" ForeColor="White"></asp:Label>
        <asp:Label ID="lblThongTin" runat="server" Text="Thông tin giỏ hàng" Visible="true" Font-Size="X-Large" ForeColor="White"></asp:Label>
        <br />
        <br />
        <asp:GridView runat="server" ID="gvGioHang" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowDeleting="gvGioHang_RowDeleting">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="Mã SP" SortExpression="CateId">
                    <EditItemTemplate>
                        <asp:Label ID="lblIdSPEdit" runat="server" Text='<%# Bind("IdSP") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblIdSP" runat="server" Text='<%# Bind("IdSP") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" CssClass="StyleHeader" />
                    <ItemStyle HorizontalAlign="Center" CssClass="StyleShort" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên sản phẩm" SortExpression="TenSP">
                    <EditItemTemplate>
                        <asp:Label ID="lblTenSPEdit" runat="server" Text='<%# Bind("TenSP") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblTenSP" runat="server" Text='<%# Bind("TenSP") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" CssClass="StyleHeader" />
                    <ItemStyle HorizontalAlign="Center" CssClass="StyleShort" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Giá sản phẩm" SortExpression="GiaSP">
                    <EditItemTemplate>
                        <asp:Label ID="lblGiaSPEdit" runat="server" Text='<%# Bind("Gia") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblGiaSP" runat="server" Text='<%# Bind("Gia") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" CssClass="StyleHeader" />
                    <ItemStyle HorizontalAlign="Center" CssClass="StyleShort" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Số lượng" SortExpression="SoLuong">
                    <EditItemTemplate>
                        <asp:Label ID="lblSoLuongEdit" runat="server" Text='<%# Bind("SoLuong") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblSoLuong" runat="server" Text='<%# Bind("SoLuong") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" CssClass="StyleHeader" />
                    <ItemStyle HorizontalAlign="Center" CssClass="StyleShort" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thành tiền" SortExpression="TongTien">
                    <EditItemTemplate>
                        <asp:Label ID="lblTongTienEdit" runat="server" Text='<%# Bind("TongTien") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblTongTien" runat="server" Text='<%# Bind("TongTien") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" CssClass="StyleHeader" />
                    <ItemStyle HorizontalAlign="Center" CssClass="StyleShort" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Xóa" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="Xóa"></asp:LinkButton>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" CssClass="StyleHeader" />
                    <ItemStyle HorizontalAlign="Center" CssClass="StyleShort" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <SortedAscendingCellStyle BackColor="#FDF5AC" />
            <SortedAscendingHeaderStyle BackColor="#4D0000" />
            <SortedDescendingCellStyle BackColor="#FCF6C0" />
            <SortedDescendingHeaderStyle BackColor="#820000" />
        </asp:GridView>
        <br />
        <asp:Label ID="lblTongTien" runat="server" Text="Tổng tiền: " Visible="true" Font-Size="Large" ForeColor="White"></asp:Label>
        <asp:Button ID="btnDatHang" runat="server" Text="Đặt hàng" OnClick="btnDatHang_Click" CssClass="button" />
    </div>

</asp:Content>

